Integrand size = 24, antiderivative size = 100 \[ \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x} \, dx=\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{2 b n}-\frac {m \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {f x}{e}\right )}{2 b n}-m \left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}\left (2,-\frac {f x}{e}\right )+b m n \operatorname {PolyLog}\left (3,-\frac {f x}{e}\right ) \]
1/2*(a+b*ln(c*x^n))^2*ln(d*(f*x+e)^m)/b/n-1/2*m*(a+b*ln(c*x^n))^2*ln(1+f*x /e)/b/n-m*(a+b*ln(c*x^n))*polylog(2,-f*x/e)+b*m*n*polylog(3,-f*x/e)
Time = 0.07 (sec) , antiderivative size = 147, normalized size of antiderivative = 1.47 \[ \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x} \, dx=-\frac {1}{2} b n \log ^2(x) \log \left (d (e+f x)^m\right )+a \log \left (-\frac {f x}{e}\right ) \log \left (d (e+f x)^m\right )+b \log (x) \log \left (c x^n\right ) \log \left (d (e+f x)^m\right )+\frac {1}{2} b m n \log ^2(x) \log \left (1+\frac {f x}{e}\right )-b m \log (x) \log \left (c x^n\right ) \log \left (1+\frac {f x}{e}\right )-b m \log \left (c x^n\right ) \operatorname {PolyLog}\left (2,-\frac {f x}{e}\right )+a m \operatorname {PolyLog}\left (2,1+\frac {f x}{e}\right )+b m n \operatorname {PolyLog}\left (3,-\frac {f x}{e}\right ) \]
-1/2*(b*n*Log[x]^2*Log[d*(e + f*x)^m]) + a*Log[-((f*x)/e)]*Log[d*(e + f*x) ^m] + b*Log[x]*Log[c*x^n]*Log[d*(e + f*x)^m] + (b*m*n*Log[x]^2*Log[1 + (f* x)/e])/2 - b*m*Log[x]*Log[c*x^n]*Log[1 + (f*x)/e] - b*m*Log[c*x^n]*PolyLog [2, -((f*x)/e)] + a*m*PolyLog[2, 1 + (f*x)/e] + b*m*n*PolyLog[3, -((f*x)/e )]
Time = 0.43 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.12, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2822, 2754, 2821, 7143}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x} \, dx\) |
\(\Big \downarrow \) 2822 |
\(\displaystyle \frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{2 b n}-\frac {f m \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{e+f x}dx}{2 b n}\) |
\(\Big \downarrow \) 2754 |
\(\displaystyle \frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{2 b n}-\frac {f m \left (\frac {\log \left (\frac {f x}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{f}-\frac {2 b n \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac {f x}{e}+1\right )}{x}dx}{f}\right )}{2 b n}\) |
\(\Big \downarrow \) 2821 |
\(\displaystyle \frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{2 b n}-\frac {f m \left (\frac {\log \left (\frac {f x}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{f}-\frac {2 b n \left (b n \int \frac {\operatorname {PolyLog}\left (2,-\frac {f x}{e}\right )}{x}dx-\operatorname {PolyLog}\left (2,-\frac {f x}{e}\right ) \left (a+b \log \left (c x^n\right )\right )\right )}{f}\right )}{2 b n}\) |
\(\Big \downarrow \) 7143 |
\(\displaystyle \frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{2 b n}-\frac {f m \left (\frac {\log \left (\frac {f x}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{f}-\frac {2 b n \left (b n \operatorname {PolyLog}\left (3,-\frac {f x}{e}\right )-\operatorname {PolyLog}\left (2,-\frac {f x}{e}\right ) \left (a+b \log \left (c x^n\right )\right )\right )}{f}\right )}{2 b n}\) |
((a + b*Log[c*x^n])^2*Log[d*(e + f*x)^m])/(2*b*n) - (f*m*(((a + b*Log[c*x^ n])^2*Log[1 + (f*x)/e])/f - (2*b*n*(-((a + b*Log[c*x^n])*PolyLog[2, -((f*x )/e)]) + b*n*PolyLog[3, -((f*x)/e)]))/f))/(2*b*n)
3.1.74.3.1 Defintions of rubi rules used
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symb ol] :> Simp[Log[1 + e*(x/d)]*((a + b*Log[c*x^n])^p/e), x] - Simp[b*n*(p/e) Int[Log[1 + e*(x/d)]*((a + b*Log[c*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, n}, x] && IGtQ[p, 0]
Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b _.))^(p_.))/(x_), x_Symbol] :> Simp[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c *x^n])^p/m), x] + Simp[b*n*(p/m) Int[PolyLog[2, (-d)*f*x^m]*((a + b*Log[c *x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]
Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_ .)]*(b_.))^(p_.))/(x_), x_Symbol] :> Simp[Log[d*(e + f*x^m)^r]*((a + b*Log[ c*x^n])^(p + 1)/(b*n*(p + 1))), x] - Simp[f*m*(r/(b*n*(p + 1))) Int[x^(m - 1)*((a + b*Log[c*x^n])^(p + 1)/(e + f*x^m)), x], x] /; FreeQ[{a, b, c, d, e, f, r, m, n}, x] && IGtQ[p, 0] && NeQ[d*e, 1]
Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_S ymbol] :> Simp[PolyLog[n + 1, c*(a + b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d , e, n, p}, x] && EqQ[b*d, a*e]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 5.09 (sec) , antiderivative size = 793, normalized size of antiderivative = 7.93
(b*ln(x)*ln(x^n)-1/2*b*n*ln(x)^2-1/2*I*ln(x)*Pi*b*csgn(I*c)*csgn(I*x^n)*cs gn(I*c*x^n)+1/2*I*ln(x)*Pi*b*csgn(I*c)*csgn(I*c*x^n)^2+1/2*I*ln(x)*Pi*b*cs gn(I*x^n)*csgn(I*c*x^n)^2-1/2*I*ln(x)*Pi*b*csgn(I*c*x^n)^3+ln(x)*ln(c)*b+l n(x)*a)*ln((f*x+e)^m)+(1/4*I*Pi*csgn(I*(f*x+e)^m)*csgn(I*d*(f*x+e)^m)^2-1/ 4*I*Pi*csgn(I*(f*x+e)^m)*csgn(I*d*(f*x+e)^m)*csgn(I*d)-1/4*I*Pi*csgn(I*d*( f*x+e)^m)^3+1/4*I*Pi*csgn(I*d*(f*x+e)^m)^2*csgn(I*d)+1/2*ln(d))*(I*ln(x)*P i*b*csgn(I*c)*csgn(I*c*x^n)^2+I*ln(x)*Pi*b*csgn(I*x^n)*csgn(I*c*x^n)^2+2*l n(x)*a+2*ln(x)*ln(c)*b+b/n*ln(x^n)^2-I*ln(x)*Pi*b*csgn(I*c*x^n)^3-I*ln(x)* Pi*b*csgn(I*c)*csgn(I*x^n)*csgn(I*c*x^n))+1/2*I*m*ln(x)*ln((f*x+e)/e)*b*Pi *csgn(I*c*x^n)^3-1/2*I*m*ln(x)*ln((f*x+e)/e)*b*Pi*csgn(I*x^n)*csgn(I*c*x^n )^2+1/2*I*m*dilog((f*x+e)/e)*b*Pi*csgn(I*c)*csgn(I*x^n)*csgn(I*c*x^n)-1/2* I*m*dilog((f*x+e)/e)*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)^2+1/2*I*m*dilog((f*x+e )/e)*b*Pi*csgn(I*c*x^n)^3+1/2*I*m*ln(x)*ln((f*x+e)/e)*b*Pi*csgn(I*c)*csgn( I*x^n)*csgn(I*c*x^n)-1/2*I*m*ln(x)*ln((f*x+e)/e)*b*Pi*csgn(I*c)*csgn(I*c*x ^n)^2-1/2*I*m*dilog((f*x+e)/e)*b*Pi*csgn(I*c)*csgn(I*c*x^n)^2+m*ln(x)^2*ln ((f*x+e)/e)*b*n-1/2*m*b*n*ln(x)^2*ln(1+f*x/e)-m*ln(x)*ln((f*x+e)/e)*ln(x^n )*b-m*ln(x)*ln((f*x+e)/e)*b*ln(c)+m*dilog((f*x+e)/e)*b*n*ln(x)-m*b*n*ln(x) *polylog(2,-f*x/e)-m*ln(x)*ln((f*x+e)/e)*a-m*dilog((f*x+e)/e)*ln(x^n)*b-m* dilog((f*x+e)/e)*b*ln(c)+b*m*n*polylog(3,-f*x/e)-m*dilog((f*x+e)/e)*a
\[ \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )} \log \left ({\left (f x + e\right )}^{m} d\right )}{x} \,d x } \]
Timed out. \[ \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x} \, dx=\text {Timed out} \]
\[ \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )} \log \left ({\left (f x + e\right )}^{m} d\right )}{x} \,d x } \]
-1/2*(b*n*log(x)^2 - 2*b*log(x)*log(x^n) - 2*(b*log(c) + a)*log(x))*log((f *x + e)^m) - integrate(-1/2*(b*f*m*n*x*log(x)^2 + 2*b*e*log(c)*log(d) + 2* a*e*log(d) - 2*(b*f*m*log(c) + a*f*m)*x*log(x) + 2*(b*f*log(c)*log(d) + a* f*log(d))*x - 2*(b*f*m*x*log(x) - b*f*x*log(d) - b*e*log(d))*log(x^n))/(f* x^2 + e*x), x)
\[ \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )} \log \left ({\left (f x + e\right )}^{m} d\right )}{x} \,d x } \]
Timed out. \[ \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x} \, dx=\int \frac {\ln \left (d\,{\left (e+f\,x\right )}^m\right )\,\left (a+b\,\ln \left (c\,x^n\right )\right )}{x} \,d x \]